import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "index",
    meta: {
      title: "首页",
      keepAlive: true
    },
    component: () => import("../components/Index.vue"),
  },
  {
    path: "/menu",
    name: "Menu",
    meta: {
      title: "菜单",
      keepAlive: true
    },
    component: () => import("../xitong/Menu.vue"),
  },
  {
    path: "/code",
    name: "Code",
    meta: {
      title: "代码",
      keepAlive: true
    },
    component: () => import("../code/Index.vue"),
  },
  {
    path: "/back",
    name: "Back",
    meta: {
      title: "后台代码",
      keepAlive: true
    },
    component: () => import("../code/Back.vue"),
  },
  {
    path: "/method",
    name: "Method",
    meta: {
      title: "后台代码",
      keepAlive: true
    },
    component: () => import("../code/Method.vue"),
  }
];
const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;